# define _CRT_SECURE_NO_WARNINGS 1
#include<limits.h.>
#include<stdio.h>
int main()
{
	int A;
	int MAX = INT_MIN;
	while (scanf("%d", &A)==1)
	{
		if (A>MAX)
		{
			MAX = A;
		}
	}
	printf("%d", MAX);
	return 0;
}